﻿using CRM.Core.DataInterfaces;
using CRM.Data;
using StructureMap;

namespace CRM.Web.Mapping
{
    class ClassMapping
    {
        public static void Configure()
        {
            ObjectFactory.Initialize(
                x => 
                x.ForRequestedType<ICustomerRepository>()
                    .TheDefaultIsConcreteType<CustomerRepository>());

        }
    }
}